package com.kexin.student.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.kexin.common.annotation.Excel;
import com.kexin.common.core.domain.BaseEntity;

/**
 * 操作日志对象 student_log
 * 
 * @author ruoyi
 * @date 2025-04-10
 */
public class StudentLog extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 日志表id */
    private Long id;

    /** 操作类型 */
    @Excel(name = "操作类型")
    private String operationType;

    /** 操作时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "操作时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date operationTime;

    /** 操作用户 */
    @Excel(name = "操作用户")
    private String username;

    /** 操作学生id */
    @Excel(name = "操作学生id")
    private Long studentId;

    /** 旧数据 */
    @Excel(name = "旧数据")
    private String oldData;

    /** 新数据 */
    @Excel(name = "新数据")
    private String newData;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setOperationType(String operationType) 
    {
        this.operationType = operationType;
    }

    public String getOperationType() 
    {
        return operationType;
    }

    public void setOperationTime(Date operationTime) 
    {
        this.operationTime = operationTime;
    }

    public Date getOperationTime() 
    {
        return operationTime;
    }

    public void setUsername(String username) 
    {
        this.username = username;
    }

    public String getUsername() 
    {
        return username;
    }

    public void setStudentId(Long studentId) 
    {
        this.studentId = studentId;
    }

    public Long getStudentId() 
    {
        return studentId;
    }

    public void setOldData(String oldData) 
    {
        this.oldData = oldData;
    }

    public String getOldData() 
    {
        return oldData;
    }

    public void setNewData(String newData) 
    {
        this.newData = newData;
    }

    public String getNewData() 
    {
        return newData;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("operationType", getOperationType())
            .append("operationTime", getOperationTime())
            .append("username", getUsername())
            .append("studentId", getStudentId())
            .append("oldData", getOldData())
            .append("newData", getNewData())
            .toString();
    }
}
